home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Ocean-HDinst / Hook / Install-Hook < prev    next >
Text File  |  1997-09-03  |  2KB  |  102 lines

  1.  
  2. ;try to figure out a place where the user usually installs his games
  3. (if (exists "Games:" (noreq) )
  4.     (set @default-dest "Games:")
  5.     (if (exists "SYS:Games" (noreq) )
  6.         (set @default-dest "SYS:Games")
  7.         (if (exists "Work:Games" (noreq) )
  8.             (set @default-dest "Work:Games")
  9.             (if (exists "JEUX:" (noreq) )
  10.                (set @default-dest "JEUX:")
  11.                (set @default-dest "SYS:")
  12.             )
  13.         )
  14.     )
  15. )
  16.  
  17. (set default-dest
  18. (askdir
  19.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  20.     (help @askdir-help)
  21.     (default @default-dest)
  22.     (disk)
  23. )
  24. )
  25.  
  26. (set @default-dest default-dest)
  27.  
  28. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  29.  
  30. (set #dest (tackon @default-dest @app-name))
  31.  
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47.  
  48. (makedir #dest
  49.     (help @makedir-help)
  50.     (infos)
  51. )
  52.  
  53. ;----------------------------
  54.  
  55. (copyfiles
  56.     (help @copyfiles-help)
  57.     (source "HookHD")
  58.     (dest #dest)
  59.     (infos)
  60. )
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "hookhd.readme")
  65.     (dest #dest)
  66.     (infos)
  67. )
  68.  
  69.  
  70. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  71.     (if
  72.         (= 0 (run ("disk2file %ld \"%s/Hook.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  73.         ("")
  74.         (abort "\"disk2file\" must be in your PATH !")
  75.     )
  76.  
  77. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  78.     (if
  79.         (= 0 (run ("disk2file %ld \"%s/Hook.d2\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  80.         ("")
  81.         (abort "\"disk2file\" must be in your PATH !")
  82.     )
  83.  
  84. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  85.     (if
  86.         (= 0 (run ("disk2file %ld \"%s/Hook.d3\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  87.         ("")
  88.         (abort "\"disk2file\" must be in your PATH !")
  89.     )
  90.  
  91.  
  92. (message ("\nInsert %s disk 4 into drive %s !" @app-name #CI_drive))
  93.     (if
  94.         (= 0 (run ("disk2file %ld \"%s/Hook.d4\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  95.         ("")
  96.         (abort "\"disk2file\" must be in your PATH !")
  97.     )
  98.  
  99.  
  100. (exit)
  101.  
  102.